package messager;

public class WebSocketPushMessage {
	
	private String source = "";
	private String message = "";
	private String url = "";
	private String eventType = "";
	
	private String receiverid = "";

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}
	
	public String getReceiverid() {
		return receiverid;
	}

	public void setReceiverid(String receiverid) {
		this.receiverid = receiverid;
	}
	
	public String ToJson() {
		String text = "{\"source\":\""+ this.source +"\",\"message\":\""+ this.message +"\",\"url\":\""+ this.url +"\",\"eventType\":\""+ this.eventType +"\",\"receiverid\":\""+ this.receiverid +"\"}";
		
		//System.out.print(text);
		return text;
	}
}
